import request from '@/utils/request'

// 查询illustriousness.`t_proprietor`列表
export function listProprietor(query) {
  return request({
    url: '/system/proprietor/list',
    method: 'get',
    params: query
  })
}

// 查询illustriousness.`t_proprietor`详细
export function getProprietor(id) {
  return request({
    url: '/system/proprietor/' + id,
    method: 'get'
  })
}

// 新增illustriousness.`t_proprietor`
export function addProprietor(data) {
  return request({
    url: '/system/proprietor',
    method: 'post',
    data: data
  })
}

// 修改illustriousness.`t_proprietor`
export function updateProprietor(data) {
  return request({
    url: '/system/proprietor',
    method: 'put',
    data: data
  })
}

// 删除illustriousness.`t_proprietor`
export function delProprietor(id) {
  return request({
    url: '/system/proprietor/' + id,
    method: 'delete'
  })
}
//查楼栋表
export function getldlist(query) {
  return request({
    url: '/system/building/list',
    method: 'get',
    params: query
  })
}
//查单元表
export function getdylist(query) {
  return request({
    url: '/system/ccu/list',
    method: 'get',
    params: query
  })
}
//查单元表
export function getlclist(query) {
  return request({
    url: '/system/floor/list',
    method: 'get',
    params: query
  })
}
